package com.example.AIstudy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@TableName("stuandproset")
public class StuAndProSet implements Serializable {

    //自增的主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("proSetID")
    public Integer proSetID;

    @TableField("stuID")
    public Integer stuID;

    @TableField("startTime")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp startTime;

    @TableField("endTime")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp endTime;

    @TableField("score")
    public int score;

    @TableField("isSubmitted")
    public boolean isSubmitted;

}
